<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/5/27
 * Time: 15:47
 */
namespace App\WebSocket\Controller;

class IndexController
{
    public function dd()
    {
        return 'this is WebSocket indexcontroller dd';
    }

    public function open($server, $request)
    {
        dd('indexController open');
    }
    public function message($server, $frame)
    {
        $server->push($frame->fd, "this is server");
    }
    public function close($ser, $fd)
    {

    }
}